package com.goodlearning.gloriamobile.commons;

import java.io.File;
import java.text.SimpleDateFormat;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import android.os.Environment;

public class Constants {
	
	//  --------------------------------------------------------------- 시스템 전역 속성값   ------------------------------------------------------------
	public static String cookie;	//세션정보를 보관하는 cookie 값
	
	//  사용자정보
//	public static String userId;
//	public static String userPw;
//	public static String userEmail; 
//	public static String userName;
	
	public static final String PATH_THUMBNAIL_DIRECTORY = "/images/thumb/";
	public static final int PAGE_MAX_ROW = 50;
	
	public static final File LOG_FILE_PATH= new File(Environment.getExternalStorageDirectory().getPath()+File.separator + "GradeBank"+File.separator+"log") ; 
	public static final String DATA_PATH = "data/data";
	public static final String DATABASE_FOLDER_NAME = "databases";
	public static final String DATABASE_FILE_NAME = "Code.db";
	
	public static final SimpleDateFormat SDF_Y_M_D = new SimpleDateFormat("yyyy-MM-dd");
	public static final SimpleDateFormat SDF_Y_M = new SimpleDateFormat("yyyy-MM");
	public static final SimpleDateFormat SDF_Y_M_D_H_M_S = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	public static final SimpleDateFormat SDF_YMD = new SimpleDateFormat("yyyyMMdd");
	
	
	//   --------------------------------------------------------------- Preference 저장키값 ------------------------------------------------------------
	public static final String PRE_BOOLEAN_VALID_SESSION = "PRE_BOOLEAN_VALID_SESSION";		// 로그인상태정보(로그인이 한번이라도 인정되었다면 )
	public static final String PRE_BOOLEAN_CHECK_AUTO_LOGIN = "PRE_BOOLEAN_CHECK_AUTO_LOGIN";		// 자동로그인 설정여부
	public static final String PRE_STRING_USER_ID = "PRE_STRING_USER_ID";						// USER_ID
	public static final String PRE_STRING_USER_PW = "PRE_STRING_USER_PW";						// USER_PW
	public static final String PRE_STRING_LOGIN_SUCCESS="PRE_COUNT_LOGIN_SUCCEESS";
	public static final String PRE_STRING_LOGIN_FAIL="PRE_COUNT_LOGIN_FAIL";
	
	public static final String PRE_BOOLEAN_ALARM_RECEIVER_FIRST_START  = "PRE_BOOLEAN_ALARAM_RECEIVER_FIRST_START";				//AlarmReceiver 최초 실행여부 판단용
	public static final String PRE_INT_SET_ALARM_HOUR  = "PRE_INT_SET_ALARM_HOUR";				// 알람설정 시간 0 - 23 
	public static final String PRE_INT_SET_ALARM_MINUTE  = "PRE_INT_SET_ALARM_MINUTE";			// 알람설정 분 0 - 59 
	public static final String PRE_INT_SET_MAP_RADIUS  = "PRE_INT_SET_MAP_RADIUS";					// 기관맵에서의 설정반경 0,1,2
	public static final String PRE_BOOLEAN_AGREE_LBS  = "PRE_BOOLEAN_AGREE_LBS";					// 내위치 사용동의 여부
	
	public static final String PRE_BOOLEAN_AGREE_COLLECT_PHONE_NUMBER  = "PRE_BOOLEAN_AGREE_COLLECT_PHONE_NUMBER";			// PUSH서비스 사용전 전화번호 수집동의여부
	public static final String PRE_BOOLEAN_CHECK_PUSH  = "PRE_BOOLEAN_CHECK_PUSH";			// PUSH서비스 사용여부
	public static final String PRE_STRING_REGISTER_ID = "PRE_STRING_REGISTER_ID";						// 등록된 PUSH용 REGID
	//--------------------------------------------------------------------처음 실행하는 것인지에 대한 저장키값--------------------------------
	public static final String PRE_BOOLEAN_CHECK_FIRST_INIT="PRE_BOOLEAN_CHECK_FIRST_INIT";
	public static final String PRE_STRING_WEB_DB_VERSION="PRE_BOOLEAN_CHECK_WEB_DB_VERSION";
	public static final String PRE_BOOLEAN_USER_SELECT_CHECK="PRE_BOOLEAN_USER_SELECT_CHECK";
	public static final String PRE_FIRST_COUNT_CHECK="PRE_FIRST_COUNT_CHECK";
	public static final String PRE_BOOLEAN_WEB_DB_VERSION_CHECK="PRE_BOOLEAN_WEB_DB_VERSION_CHECK";
	
	public static final String Request_URL="https://cyber.gloriahrd.com/appservice/noticeview.asp?";
	
}
